package com.moon.admin.flowable.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 流程部署后的资源文件
 * @author moon
 */
@Data
@TableName("act_ge_bytearray")
@ApiModel("流程部署后的资源文件")
public class ActGeByteArrayEntity implements Serializable {

	private static final long serialVersionUID = 5286724509112500383L;

	@ApiModelProperty(value = "主键ID")
    @TableId(value = "ID_")
    private String id;

    @ApiModelProperty(value = "Version(版本)")
    @TableField(value="REV_")
    private String rev;

    @ApiModelProperty(value = "部署的文件名称，如：leave.bpmn.png,leave.bpmn20.xml")
    @TableField(value="NAME_")
    private String name;

    @ApiModelProperty(value = "部署ID")
    @TableField(value="DEPLOYMENT_ID_")
    private String deploymentId;

    @ApiModelProperty(value = "部署文件字节")
    @TableField(value="BYTES_")
    private String bytes;

    @ApiModelProperty(value = "是否是引擎生成,0为用户生成，1为activiti生成")
    @TableField(value="GENERATED_")
    private int generated;
}